package com.simple.starter;

/**
 * 项目: starter-test
 * <p>
 * 功能描述:
 *
 * @author: WuChengXing
 * @create: 2021-05-16 21:56
 **/
public class HelloService {

    HelloProperties helloProperties;

    public HelloService(HelloProperties helloProperties) {
        this.helloProperties = helloProperties;
    }

    public String sayHello(String name) {
        return helloProperties.getPrefix() + ": " + name + ", " + helloProperties.getSuffix();
    }

}
